<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/static/bootstrap-5.3.3-dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="/static/bootstrap-5.3.3-dist/js/bootstrap.bundle.min.js"></script>
    <style>
        body{
            background-image:url("/static/images/img.png");
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 600px;
            margin: 50px auto;
            padding: 20px;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;

        }
        .container h2 {
            margin-top: 0;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
        }
        .form-group input,
        .form-group select {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }
        .form-group button {
            width: 100%;
            padding: 10px;
            background-color: #007BFF;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .form-group button:hover {
            background-color: #0056b3;
        }
        .footer {
            text-align: center;
            padding: 1rem 0;
            bottom: 10 px;
            background-color: rgb(56, 54, 54);
            color: white;
        }
    </style>
</head>
<body>
        <div>
    <header class="d-flex flex-wrap justify-content-center py-3 mb-4 border-bottom">
      <a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
        <svg class="bi me-2" width="40" height="32"><use xlink:href="#bootstrap"></use></svg>
        <span class="fs-4">欢迎{{ user.username}}</span>
      </a>
      <ul class="nav nav-pills">
        <li class="nav-item"><a href="{% url 'welcome' %}" class="nav-link">主页</a></li>
        <li class="nav-item"><a href="{% url 'joingame' %}" class="nav-link">比赛报名</a></li>
        <li class="nav-item"><a class="nav-link active" aria-current="page">比赛预约</a></li>
        <li class="nav-item"><a href="{% url 'signgame' %}" class="nav-link">比赛签到</a></li>
          <li class="nav-item"><a href="{% url 'losegame' %}" class="nav-link">队伍弃赛</a></li>
          <li class="nav-item"><a href="{% url 'infogame' %}" class="nav-link">比赛通知</a> </li>

      </ul>
    </header>
  </div>
        <div class="container">
            <h1>已预约比赛</h1>
            <ul>
        <li>{{ user.gameyy }}</li>
    </ul>
        <h2>预约比赛时间</h2>
    <form method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <button type="submit">更新信息</button>

    </div>
    <div class="footer">
        <p>联系地址：中央财经大学信息学院7号楼</p>
        <p>联系邮箱：qiyeyunying@xjtu.edu.cn  &nbsp;&nbsp; 联系电话：029-82656919-801
        </p>
    </div>
</body>
</html>